<?php
include_once('inc/functions.inc.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Movimiento de banco</title>
<link href="../css/bancos.css" rel="stylesheet" type="text/css" />
<?php
if( !isset($_GET["ajax"]) ) {  
    ?>
    <link href="../css/maintenance_v2.css" rel="stylesheet" type="text/css" />
    <link href="../libs/jquery.ui/jquery.ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/jquery.js" language="javascript"></script>
    <script type="text/javascript" src="../libs/jquery.ui/jquery.ui.min.js" language="javascript"></script>
    <script type="text/javascript" src="../js/admin_bancos.js" language="javascript"></script>
    <?php
}    
?>
<script type="text/javascript" src="../js/admin_bancos_movimiento.js" language="javascript"></script>
</head>
<body>
<form name="frmBancosMovimiento" id="frmBancosMovimiento" method="post" action="">
    <?php
    if( !isset($_GET["ajax"]) ) {  
        ?>
        <div id="dialog-cargando" style="width: auto; height: auto; vertical-align: middle; text-align: center; display: none">
            <img id="img-cargando" src='../img/loading.gif' style="width: 100px; height: 100px" />
        </div>
        <?php
    }
    ?>
    <div id="div-movimiento-mensajes" style="width: 900px; float: left;"></div>
    <div id="div-movimiento-empresa" style="width: 900px; float: left; text-align:center;">
    <?php
    $intSelectedID = getParam("sltEmpresa");
    fntMovimientoDrawEmpresa($db, "Movimiento", $intSelectedID);
    date_default_timezone_set("America/Guatemala");
    $strFecha = date("d-m-Y");
    ?>
    </div>    
    <div id="div-movimiento-parametros" style="width:900px; height: 150px;">
        <div style="width: 900px; height: 30px; float: left; text-align: center;" id="div-movimiento-cuentas">
        </div>
        <div style="width: 900px; height: 30px; float: left; text-align: center;">
            <b>Periodo</b>
            <b> del </b>
            <input type="text" name="txtMovimientoFechaI" value="<?php print $strFecha; ?>" size="11" maxlength="10" style="text-align: center;">
            <b> al </b>
            <input type="text" name="txtMovimientoFechaF" value="<?php print $strFecha; ?>" size="11" maxlength="10" style="text-align: center;">
        </div>
        <div style="width: 900px; height: 30px; float: left; text-align: center;">
            <b>Tipo de documento: </b>
            <select name="sltMovimientoTipo">
                <option value="0">--- Todos ---</option>
                <option value="1">Cheque</option>
                <option value="2">Nota de credito</option>
                <option value="3">Nota de debito</option>
            </select>
        </div>
        <div style="width: 900px; height: 30px; float: left; text-align: center;">
            <button id="btn-ver" type="button">Ver</button> <button id="btn-imprimir" type="button">Imprimir</button> <button id="btn-excel" type="button">Descargar a Excel</button>
        </div>        
    </div>
    <div id="div-emision-resultado" style="width: 900px; height: 600px;"></div>
</form>
</body>
</html>